<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<title>jQuery Autocomplete Plugin</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type='text/javascript' src='jquery.autocomplete.js'></script>
<link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" />
	
<script type="text/javascript">
$().ready(function() {

	function formatResult(row) {
		return row[0].replace(/,(<.+?>)/gi, '');
	}
	
	$("#suggest4").autocomplete('search.jsp', {
		//width: 300,
		multiple: false,
		matchContains: true,
		formatResult: formatResult
	});

});


function StoreID(vID) // Must Have This Function
{
	document.getElementById("hid_data").value = vID;
}

function GetID()
{
	alert(document.getElementById("hid_data").value);
}
</script>
	
</head>

<body>

	<p>
			<label>Single Bird (remote):</label>
<input type="hidden" id="hid_data" value="" />
			<input type="text" id="suggest4" />
			<input type="button" value="Get Value" onClick="GetID();" />
		</p>

</body>
</html>
